package com.kgc.activiticonsumer.controller;

import com.kgc.activiti.pojo.WorkFlow;
import com.kgc.activiti.util.ResponseMsg;
import com.kgc.activiticonsumer.feign.WorkFlowFeign;
import com.kgc.activiticonsumer.feign.WorkFlowTypeFeign;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("workFlowType")
@RestController
@CrossOrigin
public class WorkFlowTypeController {

    private Logger logger = LoggerFactory.getLogger(getClass());
    @Autowired
    private WorkFlowTypeFeign workFlowTypeFeign;

    @RequestMapping("selectAllWorkFlowType")
    public ResponseMsg selectAllWorkFlowType(){
        ResponseMsg msg = workFlowTypeFeign.selectAllWorkFlowType();
        return msg;
    }
}
